package com.c.Servlet;

import com.c.Dao.TestDao;

import javax.servlet.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

@WebServlet("/test")
public class TestServlet extends BaseServlet {
    //访问数据访问对象
    private final TestDao testDao = new TestDao();

    public List<Map<String,Object>> test01(HttpServletRequest request, HttpServletResponse response){
        List<Map<String,Object>> list = testDao.getList();
        return list;
    }
}
